Page({
  data:{
    point:'',
    size:0,
    type:''
  },
  onLoad({point}){
    this.fakeData(point)
  },
  fakeData(point){
    // 伪造楼栋/号数据（仅用于授课）
    const size = Math.floor(Math.random(0,1)*4)+3
    const type =size>4?'号楼':'栋'
    this.setData({point,size,type})
  },
  goRoom(ev){
    wx.navigateTo({
      url: `/house_pkg/pages/room/index?point=${this.data.point}&building=${ev.mark.building}`,
    })
  }
})